/**
 * 
 */
package info.niwota.home;

import instant.openvfs.home.Debug;
import x.java.io.File;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;

/**
 * @author qiangli
 *
 */
public class HomeTabThumbnail extends HomeFlingActivity {

	private static final String TAG = "HomeTabThumbnail";

	@Override
	public void onCreate(Bundle savedInstance) {
		super.onCreate(savedInstance);
		if (Debug.DEBUG) {
			Log.d(TAG, "onCreate savedInstance: " + savedInstance);
		}
	}
	
	@Override
	protected void initRes() {
		super.initRes();
		//
		mFlingView.setVisibility(View.GONE);
		mGrid.setVisibility(View.VISIBLE);
	}

	@Override	
	protected void initAdapter() {
		if (Debug.DEBUG) {
			Log.d(TAG, "initAdapter");
		}
		super.initAdapter();
	}

	protected void initFling() {
	}
	
	protected void initTtsMessages() {
	}

	@Override
	public void onDestroy() {
		if (Debug.DEBUG) {
			Log.d(TAG, "onDestroy ");
		}
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		if (Debug.DEBUG) {
			Log.d(TAG, "onPause ");
		}
		super.onPause();
	}

	@Override
	protected void onResume() {
		super.onResume();
		if (Debug.DEBUG) {
			Log.d(TAG, "onResume ");
		}
		mHeader.setText("");
	}

	@Override
	protected void onNewIntent(Intent intent) {
		if (Debug.DEBUG) {
			Log.d(TAG, "onNewIntent: " + intent);
		}
		super.onNewIntent(intent);
	}

	
	@Override
	protected void onRestart() {
		super.onRestart();
		//
		if (Debug.DEBUG) {
			Log.d(TAG, "onRestart: ");
		}
	}

	@Override
	protected void onStart() {
		super.onStart();
		if (Debug.DEBUG) {
			Log.d(TAG, "onStart: ");
		}
	}

	@Override
	protected void onStop() {
		if (Debug.DEBUG) {
			Log.d(TAG, "onStop: ");
		}
		super.onStop();
	}

	@Override
	protected void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
		if (Debug.DEBUG) {
			Log.d(TAG, "onSaveInstanceState: " + outState);
		}
	}

	@Override
	protected boolean isFlinging() {
		return false;
	}

	@Override
	protected void say(File f) {
		if (f == null) {
			return;
		}
		mHeader.setText(f.getName());
	}
	
	protected void speak(String s) {
		//
	}
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		return super.onKeyDown(keyCode, event);
	}
}
